{# empty Twig template #}
{% extends '::base.html.twig' %}

{% block body %}
findAll: <br/>
    {% for entity in entities %}
        Account Id: {{ entity.accountid }}
        Provider Id: {{ entity.providerid }}
        <a href="{{ path('s3_sample1_connetion_edit', {'id': entity.id }) }}">Edit</a>
        <br/>
    {% endfor %}    
    <a href="{{ path('s3_sample1_connetion_add', {'form_type': 'edit'}) }}">Add</a>
    <br/>
{# find method for find one record by id #}    
find($id): <br/>
    {% if find is not null %}
        {{ find.accountid }}<br/>
    {% endif %}
{# find one record by an attribute (id) #}    
findOneById: <br/>
    {% if find is not null %}
        {{ findOneById.accountid }}<br/>
    {% endif %}

{# find many records by one attribute #}    
findByProviderId:({{ findByProviderId | length }}) <br/>
    {% for connection in findByProviderId %}
        {{ connection.accountid }}<br/>
    {% endfor %}

{# find many records by many attribute #}
findBy: ({{ findBy|length }}) <br/>
    {% for connection in findBy %}
        {{ connection.accountid }}<br/>
    {% endfor %}

{# return array of results #}
array Result:<br/>
    {% for connection in arrResult %}
        {{ connection.accountid }}<br/>
    {% endfor %}
{% endblock %}
